package com.teamone.etl.datasource.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * (DataSource)表实体类
 *
 * @author makejava
 * @since 2021-01-06 14:22:50
 */
public class DataSource extends Model<DataSource> {
    /**序号
     *
     */
    private Integer id;
    /**数据源描述
     *
     */
    private String description;
    /**连接地址
     *
     */
    private String host;
    /**用户名
     *
     */
    private String username;
    /**密码
     *
     */
    private String password;
    /**连接端口
     *
     */
    private Integer port;
    /**连接数据库名称
     *
     */
    private String name;
    /**创建时间
     *
     */
    private Date createTime;
    /**最后更新时间
     *
     */
    private Date updateTime;
    /**是否停用，1禁用,0启用
     *
     */
    private Integer isDisable;
    /**备注
     *
     */
    private String remarks;
    /**类型id
     *
     */
    private Integer typeId;
    /**连接状态，1连接中，0未连接
     *
     */
    private Integer isConnect;
    /**额外配置参数
     *
     */
    private String extraConfigParam;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDisable() {
        return isDisable;
    }

    public void setIsDisable(Integer isDisable) {
        this.isDisable = isDisable;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getIsConnect() {
        return isConnect;
    }

    public void setIsConnect(Integer isConnect) {
        this.isConnect = isConnect;
    }

    public String getExtraConfigParam() {
        return extraConfigParam;
    }

    public void setExtraConfigParam(String extraConfigParam) {
        this.extraConfigParam = extraConfigParam;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}